package com.xinzhidi.web.dtuusr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


/**
 * dtu设备AddDto对象 dtu_usr
 *
 * @author cx
 * @date 2023-06-15
 */
@ApiModel(value = "dtu设备对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class DtuUsrAddDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属端口")
    private Integer port;

    @ApiModelProperty(value = "DTU名称")
    @NotBlank(message = "DTU名称不能为空")
    @Size(max = 100, message = "DTU名称长度不能大于100")
    private String name;

    @ApiModelProperty(value = "uuid")
    @NotBlank(message = "uuid不能为空")
    @Size(max = 30, message = "uuid长度不能大于30")
    private String uuid;

    @ApiModelProperty(value = "注册包")
    @NotBlank(message = "注册包不能为空")
    private String registerPackage;

    @ApiModelProperty(value = "心跳间隔时间（单位：分钟）")
    @NotNull(message = "心跳间隔时间不能为空")
    private Integer intervalTime;

    @ApiModelProperty(value = "备注")
    private String remark;

}
